package com.dt.dubai.sys.service;

import com.dt.dubai.sys.entity.SysMenuEntity;
import com.dt.dubai.sys.service.innate.SysMenuSerInnateAbsImp;
import com.dt.dubai.sys.service.ser.SysMenuService;
import org.springframework.stereotype.Service;

@Service
public class SysMenuServiceImp extends SysMenuSerInnateAbsImp implements SysMenuService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(SysMenuEntity inEntity) {

    }

    @Override
    protected void userModEntity(SysMenuEntity inEntity, SysMenuEntity upEntity) {
        upEntity.setMenuNameZh(inEntity.getMenuNameZh()); // 菜单中文名称
        upEntity.setMenuUrl(inEntity.getMenuUrl()); // 菜单url地址
        upEntity.setMenuIconAdds(inEntity.getMenuIconAdds()); // 菜单图标地址
        upEntity.setMenuPid(inEntity.getMenuPid()); // 父节点记录ID
        upEntity.setYesLeaf(inEntity.getYesLeaf()); // 是否叶子
        upEntity.setMenuStatus(inEntity.getMenuStatus()); // 状态
        upEntity.setMenuOrder(inEntity.getMenuOrder()); // 序号

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/
}
